<%@ include file="/common/taglibs.jsp"%>
<%@taglib prefix="content" tagdir="/WEB-INF/tags/content"%>
<title><fmt:message key="adPositionTypeDetail.title"/></title>
<probiz:showBindErrors bindPath="adPositionType.*" />

<content tag="buttons">
	<probiz:iconBtn btnType="save" onclick="fnDoSave(this, 'positionName')" />
	<%--
	<c:if test="${adPositionType.adPositionTypeId!=null}">
	    <probiz:iconBtn btnType="delete" onclick="deletePosition(this)" />
	</c:if>
	--%>
	<probiz:iconBtn btnType="back" url="${ctxPath}/content/adPositionType.html" />
</content>

<form class="mainForm" method="post" action="<c:url value="/content/adPositionType.html"/>" id="adPositionType" name="adPositionType" onsubmit="return validateAdPositionType(this)">
	<div class="top clearfix">
		<ul class="tab">
			<li class="curr"><span><fmt:message key="adPositionTypeDetail.title"/></span></li>
		</ul>
	</div>
	<div class="modify"> 
		<table class="com_modi_table" cellSpacing=0 cellPadding=0 width="100%" border=0>
		    <tr>
				<th class="label_width_1">
					<StoreAdmin:label key="adPositionType.positionName"/>
				</th>
				<td>
					<input type="hidden" name="adPositionTypeId" value="${adPositionType.adPositionTypeId}"/> 
					<input type="text" name="positionName" id="positionName" value="${adPositionType.positionName}" style="width:350px" class="inputtxt"/>
				</td>
			</tr>
		    <tr>
				<th>
					<fmt:message key="adPositionType.positionCode"/>
				</th>
				<td>
					${adPositionType.positionCode}
				</td>
			</tr>
		    <tr>
				<th>
					<fmt:message key="adPositionType.positionType"/>
				</th>
				<td>
					<fmt:message key="adPositionType.positionType.${adPositionType.positionType}"/>
				</td>
			</tr>
		    <tr>
				<th>
					<StoreAdmin:label key="adPositionType.width"/>
				</th>
				<td>
					<input type="text" name="width" id=width value="${adPositionType.width}" style="width:150px" class="inputtxt"/>&nbsp;px
				</td>
			</tr>
		    <tr>
				<th>
					<StoreAdmin:label key="adPositionType.height"/>
				</th>
				<td>
					<input type="text" name="height" id=height value="${adPositionType.height}" style="width:150px" class="inputtxt"/>&nbsp;px
				</td>
			</tr>
		    <tr>
				<th>
					<StoreAdmin:label key="adPositionType.displayType"/>
				</th>
				<td>
					<input type="radio" id="displayType1" name="displayType" value="1" <c:if test="${adPositionType.displayType==1 or empty adPositionType.displayType}">checked</c:if>></input>
					<label for="displayType1"><fmt:message key="adPositionType.displayType.1"/>:<fmt:message key="adPositionType.displayType2.1"/></label>
					<br/>
					<input type="radio" id="displayType2" name="displayType" value="2" <c:if test="${adPositionType.displayType==2}">checked</c:if>></input>
					<label for="displayType1"><fmt:message key="adPositionType.displayType.2"/>:<fmt:message key="adPositionType.displayType2.2"/></label>
				</td>
			</tr>
		</table>
	</div>
</form>

<v:javascript formName="adPositionType" staticJavascript="false"/>
<script type="text/javascript">
<%--

$j(document).ready(function () {
	__FMTExtend = {
		adPosition_deleteHint:"<fmt:message key="adPosition.deleteHint"/>"
	};
	$j.extend(__FMT, __FMTExtend); 		
});

function deletePosition(frm){
 if(window.confirm(__FMTExtend.adPosition_deleteHint)){
	 return fnDoDelete(frm, 'positionName')
  }
}

function deletePosition(form){
	return fnDoAction(form, "delete", __FMT.adPosition_deleteHint + '\r\n\r\n' +__FMT.common_message_confirmDeleteThis+ " " + $j('#positionName').val()+"?");	
}
--%>  
</script>

